package com.lagou.edu.feignservice;

import com.lagou.edu.entity.MailReturn;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: springcloud-web-one
 * @description:
 * @author: zhoushiduo
 * @create: 2021-03-22 17:51
 */

@FeignClient("lagou-service-email")
@RequestMapping("/email")
public interface EmailService {

    @GetMapping("/send/{email}/{code}")
    public MailReturn sendEmail(@PathVariable("email")String email, @PathVariable("code")String code);
}
